package cn.edu.lzu.unitweb.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TransferController {

    /**
     * @Description: TODO 跳转到‘体检单位’登录页面medicalUnit/login.html
     * @Date: 2019/11/30 16:56
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/unitLogin")
    public String toUnitLogin() {
        return "login.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘体检单位’主页面medicalUnit/index.html
     * @Date: 2019/11/30 16:57
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/unitIndex")
    public String toExaminerIndex() {
        return "index.html";
    }

    @RequestMapping("/403")
    public String unAuthorizedUrl() {
        return "403.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 往‘单位’的‘控制台’主页面的跳转
     * @Date: 2019/11/30 16:55
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/unitConsole")
    public String toUnitConsole() {
        return "console/console.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 往‘员工列表’页面跳转
     * @Date: 2019/11/30 19:39
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("peopleManage")
    @RequestMapping("/examinerList")
    public String toExaminerList() {
        return "examiner/examinerList.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 往‘员工注册’页面跳转
     * @Date: 2019/12/2 13:06
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("peopleManage")
    @RequestMapping("/examinerRegiste")
    public String toExaminerRegiste() {
        return "examiner/examinerRegiste.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘密码修改页面’
     * @Date: 2019/12/8 15:20
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/toUpdatePwd")
    public String toUpdatePwd() {
        return "self/updatePwd.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘项目列表’页面
     * @Date: 2019/12/8 15:21
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/itemList")
    public String toItemList() {
        return "item/laboratory/itemList.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到“实验室检查条目”窗口
     * @Date: 2020/3/21 15:37
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/labExamineClause")
    public String toLabExamineItems() {
        return "item/laboratory/labExamineClause.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘添加项目’页面
     * @Date: 2019/12/9 20:22
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/addExamineItem")
    public String toAddExamineItem() {
        return "item/laboratory/addExamineItem.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘套餐列表’
     * @Date: 2019/12/10 14:50
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("packageSetting")
    @RequestMapping("/packageList")
    public String toPackageList() {
        return "package/packageList.html";
    }

    /*
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘新建套餐’
     * @Date: 2019/12/11 11:30
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("packageSetting")
    @RequestMapping("/addExaminePackage")
    public String toAddExaminePackage() {
        return "package/addExaminePackage.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘项目类型树’页面
     * @Date: 2019/12/11 13:42
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/typeList")
    public String toTypeList() {
        return "item/type/typeList.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘添加项目类型树节点’页面
     * @Date: 2020/1/2 15:07
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/addTypeNodePage")
    public String toAddTypeNodePage() {
        return "item/type/addTypeNode.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘挂号’工作窗口
     * @Date: 2020/1/17 20:27
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/registeUser")
    public String toWorkPage() {
        return "workSpace/registe/registeUser.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到‘缴费’窗口
     * @Date: 2020/3/11 12:49
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequestMapping("/charge")
    public String toChargePage() {
        return "workSpace/charge/charge.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到添加实验室检查项目条目窗口
     * @Date: 2020/3/21 17:41
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/addLabExamineClause")
    public String toAddLabExamineClause() {
        return "item/laboratory/addLabExamineClause.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到“放射类项目”窗口
     * @Date: 2020/3/23 22:01
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/radExamineItem")
    public String toRadLabExamineClause() {
        return "item/radiology/radExamineItem.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到“添加放射类项目”窗口
     * @Date: 2020/3/23 22:09
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("itemSetting")
    @RequestMapping("/addRadExamineItem")
    public String toAddRadExamineItem() {
        return "item/radiology/addRadExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/supExamineItem")
    public String toSupExamineItem() {
        return "item/supersonic/supExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/addSupExamineItem")
    public String toAddSupExamineItem() {
        return "item/supersonic/addSupExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/speExamineItem")
    public String toSpeExamineItem() {
        return "item/speculum/speExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/addSpeExamineItem")
    public String toAddSpeExamineItem() {
        return "item/speculum/addSpeExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/medExamineItem")
    public String toMedExamineItem() {
        return "item/medical/medExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/addMedExamineItem")
    public String toAddMedExamineItem() {
        return "item/medical/addMedExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/cliExamineItem")
    public String toCliExamineItem() {
        return "item/clinic/cliExamineItem.html";
    }

    @RequiresPermissions("itemSetting")
    @RequestMapping("/addCliExamineItem")
    public String toAddCliExamineItem() {
        return "item/clinic/addCliExamineItem.html";
    }

    /**
     * @Author: 张琦[QQ:3098086691]
     * @Description: TODO 跳转到“实验室检查”窗口
     * @Date: 2020/3/15 13:57
     * @Param: []
     * @Return: java.lang.String
     **/
    @RequiresPermissions("labExamine")
    @RequestMapping("/laboratory")
    public String toLaboratory() {
        return "workSpace/department/laboratory/laboratory.html";
    }

    @RequiresPermissions("radExamine")
    @RequestMapping("/radiology")
    public String toRadiology() {
        return "workSpace/department/radiology/radiology.html";
    }

    @RequiresPermissions("cliExamine")
    @RequestMapping("/clinic")
    public String toClinic() {
        return "workSpace/department/clinic/clinic.html";
    }

    @RequiresPermissions("medExamine")
    @RequestMapping("/medical")
    public String toMedical() {
        return "workSpace/department/medical/medical.html";
    }

    @RequiresPermissions("speExamine")
    @RequestMapping("/speculum")
    public String toSpeculum() {
        return "workSpace/department/speculum/speculum.html";
    }

    @RequiresPermissions("supExamine")
    @RequestMapping("/supersonic")
    public String toSupersonic() {
        return "workSpace/department/supersonic/supersonic.html";
    }

    @RequestMapping("/totalExamine")
    public String toTotalExamine() {
        return "workSpace/totalExamine/totalExamine.html";
    }

    @RequestMapping("/fillInfo")
    public String tofillInfo() {
        return "workSpace/info/info.html";
    }

    @RequestMapping("/forgetPwd")
    public String toForgetPwd() {
        return "forgetPwd.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/permissionList")
    public String toPermissionList() {
        return "rolePermission/permission.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/roleList")
    public String toRoleList() {
        return "rolePermission/role.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/addRole")
    public String toAddRole() {
        return "rolePermission/addRole.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/editRole")
    public String toEditRole() {
        return "rolePermission/editRole.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/apportionPerm")
    public String toApportionPerm() {
        return "rolePermission/apportionPerm.html";
    }

    @RequiresPermissions("permissionManage")
    @RequestMapping("/apportionRole")
    public String toApportionRole() {
        return "rolePermission/apportionRole.html";
    }

    @RequestMapping("/personalCenter")
    public String toPersonalCenter() {
        return "personal/personalCenter.html";
    }

    @RequestMapping("/labExamineResult")
    public String toLabExamineResult(){
        return "workSpace/totalExamine/labExamineResult.html";
    }

}
